package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.CerPersonalInfo;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.model.excel.SysteminitImportInfo;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @createTime: 2023-09-27
 * @creater: yong
 */
public interface CerPersonInfoService {
    List<CerPersonalInfo> queryAllByLimit(CerPersonalInfo cerPersonalInfo);
    Map<String, Object> listPageData(PageData pageData);
    Map<String, Object> listDataByNameOrIdCard(PageData pageData);

    void checkStreetAndVillage(CerPersonalInfo cerPersonalInfo);

    int insertRecords(List<CerPersonalInfo> importInfoList);

    int updateCerPersonInfo(CerPersonalInfo info);

    int insertCerPersonInfo(CerPersonalInfo info);

    CerPersonalInfo getPersonInfoById(String id);

    CerPersonalInfo getPersonInfoByIdCard(String idCard);

    List<LinkedHashMap<String, Object>> queryAllExportDataBy(PageData pageData);

    int getCountByIdCardAndInstitutionId(String orgId, String idCard);

    JsonObj delPersonInfo(String id);

    JsonObj getVillagesByNameOrIdCard(PageData pageData);

    int addBatchPersonals(List<CerPersonalInfo> personalInfos);


}
